<template>
	<div class="tpl44-nav">
    <section class="list_menu_style53">
      <ul>
        <li v-for="item in tplItemData.dataset">
          <a @click="openPage(item.link)">
            <img :src="item.pic"/>
            <p>{{ item.showtitle }}</p>
          </a>
        </li>
      </ul>
    </section>
  </div>
</template>

<script>
import Vue from 'vue'
import { openPage } from '@/utils/utils'
export default Vue.extend({
  name: 'index',
  data() {
    return {
    }
  },
  props: {
    tplItemData: {
      type: Object // 传入参数的类型
    }
  },
  methods: {
    // TODO 小程序跳转
    openPage(link) {
      // console.log('link',link)
      openPage(link)
    }
  },
})
</script>

<style lang='scss'>
 @import "src/styles/mixin";
.tpl44-nav{
  //53套模版
  .list_menu_style53{
    ul{
      display: flex;
      display:-webkit-box;
      display:-webkit-flex;
      flex-wrap: wrap;
      -webkit-flex-wrap: wrap;
      -moz-flex-wrap: wrap;
      background: #fff;
      padding: 5% 2% 5%;
      -webkit-justify-content: space-around;
      -ms-flex-pack: distribute;
      justify-content: space-around;
      -webkit-justify-content: space-around;
      -moz-justify-content: space-around;
      border-radius: 20px;
      text-align: center;
      flex-direction: row;
      -webkit-flex-direction: row;
      -moz-flex-direction: row;
      li{
        width: 16%;
        text-align: center;
        margin: 0;
        img{
          width: 100%;
          height: 114px;
        }
        p{
          line-height: 30px;
          padding-top: 10px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          color: #666;
        }
      }
    }
  }
  
}

</style>
